<template>
  <el-row type="flex" justify="center">
    <el-pagination
      layout="prev, pager, next"
      :page-size="page.size"
      :total="page.total"
      @current-change="currentChange"
    ></el-pagination>
  </el-row>
</template>

<script>
export default {
  props: {
    page: { type: Object }
  },
  methods: {
    currentChange(current) {
      this.page.current = current;
      this.$emit("fetch");
    }
  }
};
</script>

<style>
</style>